package services

import (
	"context"
	"fmt"
)

type OrdersService struct {
}

func(this *OrdersService) NewOrder(ctx context.Context,orderRequest *OrderRequest) (*OrderResponse,error){
	fmt.Println(orderRequest.OrderMain)
	err := orderRequest.OrderMain.Validate()
	if err != nil {
		return &OrderResponse{
			Status: "error",
			Message: err.Error(),
		},nil
	}
	return &OrderResponse{
		Status: "OK",
		Message:"success",
	},nil
}
